package jin.si.service;

import jin.si.dao.HomePageMapper;
import jin.si.pojo.*;

import java.util.List;

/**
 * ClassName:HomePage
 * Package:jin.si.dao
 * Description:
 *
 * @Date:2022/3/4 9:53
 * @Author: XJR
 */
public interface HomePageService{
    //查询轮播图
    public List<JsCarousel> selectJsCarousel(Integer display);
    //查询课程
    public List<JsCourse> selectJsCourse(Integer courseStatus,Integer orderStatus,Integer orderType);
    //通过id查看课程详情
    public JsCourse selectJsCourseById(Integer courseId);
    //查看课程分类
    public List<JsCourse> selectJsCourseTypeById(Integer id,Integer courseStatus);
    //查看课程评论
    public List<JsCourse> selectJsCourseComment(JsCommentLike jsCommentLike);
    //查看课程销量
    public Integer selectJsCourseSalesVolume(Integer orderStatus,Integer productId,Integer userId);
    //查看课程点赞数
    public Integer selectJsCourseLikeNum(Integer type,Integer courseId,Integer userId);
    //查看课程收藏量
    public Integer selectJsCourseCollectNum(Integer type,Integer courseId,Integer userId);
    //查看课程分享数量
    public Integer selectJsCourseShareNum(Integer type,Integer courseId);
    //添加课程点赞量
    public Boolean insertCourseLikeNum(JsFabulous jsFabulous);
    //删除课程点赞量
    public Boolean delCourseLikeNum(JsFabulous jsFabulous);
    //添加课程收藏量
    public Boolean insertCourseCollectNum(JsUserCollection jsUserCollection);
    //删除课程收藏量
    public Boolean delCourseCollectNum(JsUserCollection jsUserCollection);
    //添加课程评论
    public Boolean insertCourseComment(JsComment comment);
    //添加课程评论的点击量
    public Boolean insertCourseCommentLikeNum(JsCommentLike jsCommentLike);
    //删除课程评论的点击量
    public Boolean deleteCourseCommentLikeNum(JsCommentLike jsCommentLike);
    //查看当前用户是否点赞课程评论
    public JsCommentLike selectCourseCommentLikeNum(Integer productId,Integer userId,Integer userType);
}
